package top.shen33.yang.model.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author oreilly
 * @since 2018-08-15
 */
public class MmallOrderItem extends Model<MmallOrderItem> {

private static final long serialVersionUID = 1L;

    /**
     * 订单子表id
     */
                    @TableId(value = "id", type = IdType.AUTO)
                private Integer id;
        private Integer userId;
        private Long orderNo;
    /**
     * 商品id
     */
        private Integer productId;
    /**
     * 商品名称
     */
        private String productName;
    /**
     * 商品图片地址
     */
        private String productImage;
    /**
     * 生成订单时的商品单价，单位是元,保留两位小数
     */
        private BigDecimal currentUnitPrice;
    /**
     * 商品数量
     */
        private Integer quantity;
    /**
     * 商品总价,单位是元,保留两位小数
     */
        private BigDecimal totalPrice;
        private Date createTime;
        private Date updateTime;


    public Integer getId() {
            return id;
            }

        public void setId(Integer id) {
            this.id = id;
            }

    public Integer getUserId() {
            return userId;
            }

        public void setUserId(Integer userId) {
            this.userId = userId;
            }

    public Long getOrderNo() {
            return orderNo;
            }

        public void setOrderNo(Long orderNo) {
            this.orderNo = orderNo;
            }

    public Integer getProductId() {
            return productId;
            }

        public void setProductId(Integer productId) {
            this.productId = productId;
            }

    public String getProductName() {
            return productName;
            }

        public void setProductName(String productName) {
            this.productName = productName;
            }

    public String getProductImage() {
            return productImage;
            }

        public void setProductImage(String productImage) {
            this.productImage = productImage;
            }

    public BigDecimal getCurrentUnitPrice() {
            return currentUnitPrice;
            }

        public void setCurrentUnitPrice(BigDecimal currentUnitPrice) {
            this.currentUnitPrice = currentUnitPrice;
            }

    public Integer getQuantity() {
            return quantity;
            }

        public void setQuantity(Integer quantity) {
            this.quantity = quantity;
            }

    public BigDecimal getTotalPrice() {
            return totalPrice;
            }

        public void setTotalPrice(BigDecimal totalPrice) {
            this.totalPrice = totalPrice;
            }

    public Date getCreateTime() {
            return createTime;
            }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
            }

    public Date getUpdateTime() {
            return updateTime;
            }

        public void setUpdateTime(Date updateTime) {
            this.updateTime = updateTime;
            }

@Override
protected Serializable pkVal() {
            return this.id;
        }

@Override
public String toString() {
        return "MmallOrderItem{" +
                ", id=" + id +
                ", userId=" + userId +
                ", orderNo=" + orderNo +
                ", productId=" + productId +
                ", productName=" + productName +
                ", productImage=" + productImage +
                ", currentUnitPrice=" + currentUnitPrice +
                ", quantity=" + quantity +
                ", totalPrice=" + totalPrice +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
        "}";
        }
        }
